From a7ee6825a8154ca4c3736385c772df2d2407f95e Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Tue, 22 Jul 2008 03:01:12 +0000 Subject: [PATCH] (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return. --- src/macterm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/macterm.c b/src/macterm.c index f73050788c2..8a0b2d61846 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -422,10 +422,7 @@ XDrawLine (display, p, gc, x1, y1, x2, y2) color_space = NULL; alpha_info = kCGImageAlphaOnly; } - if (color_space == NULL) - return; - context = CGBitmapContextCreate (ximg->data, ximg->width, - ximg->height, 8, + context = CGBitmapContextCreate (ximg->data, ximg->width, ximg->height, 8, ximg->bytes_per_line, color_space, alpha_info); if (ximg->bits_per_pixel == 32) -- 2.30.2